<?
$traumatic_experiences = set_value('traumatic_experiences',$student->ce_trauma_exp_what);
$age_trauma = set_value('age_trauma',$student->ce_trauma_exp_age);
$trauma_reaction = set_value('trauma_reaction',$student->ce_trauma_exp_reaction);
$how_trauma_affected_child = set_value('how_trauma_affected_child',$student->ce_trauma_exp_affected);
$special_fears = set_value('special_fears',$student->ce_special_fears_what);
$when_what_triggered_fear = set_value('when_what_triggered_fear',$student->ce_special_fears_when);
$how_do_you_handle = set_value('how_do_you_handle',$student->ce_special_fears_handle);
?>
<div>
<div class="alert-box secondary"><h6>Childhood Experiences</h6></div>
	<form action="<?=site_url('guardian/student_profiles/'.$hid);?>" method="POST" id="update_student_data">
	<div>
		<label class="radius secondary label">Has the child encountered ny traumatic experiances? if yes specify</label>
		<?=form_error('traumatic_experiences');?>
		<textarea name="traumatic_experiences"><?=$traumatic_experiences;?></textarea>
	</div>
	<div>
		<div class="large-6 columns">
			<label class="radius secondary label">Age</label>
			<?=form_error('age_trauma');?>
			<input type="text" name="age_trauma" value="<?=$age_trauma;?>">
		</div>
		<div class="large-6 columns">
			<label class="radius secondary label">Reaction</label>
			<?=form_error('trauma_reaction');?>
			<textarea name="trauma_reaction"><?=$trauma_reaction;?></textarea>
		</div>
	</div>
	
	<div>
		<label class="radius secondary label">How has it affected the child?</label>
		<?=form_error('how_trauma_affected_child');?>
		<textarea name="how_trauma_affected_child"><?=$how_trauma_affected_child;?></textarea>
	</div>
	
	<div>
		<label class="radius secondary label">Does the child have any special fears?if yes what?</label>
		<?=form_error('special_fears');?>
		<textarea name="special_fears"><?=$special_fears;?></textarea>
	</div>
	<div>
		<label class="radius secondary label">Since when? What has triggered the fear?</label>
		<?=form_error('when_what_triggered_fear');?>
		<textarea name="when_what_triggered_fear"><?=$when_what_triggered_fear;?></textarea>
	</div>
	<div>
		<label class="radius secondary label">How do you handle it?</label>
		<?=form_error('how_do_you_handle');?>
		<textarea name="how_do_you_handle"><?=$how_do_you_handle;?></textarea>
	</div>
	<?if(@$student->edit == 0 OR isset($imastudent)):?>
		<span><small style="color:#f00">Sorry but this profile is locked and cannot be edited, please contact the school registrar.</small></span></br>
	<?else:?>
	<hr>
	<div>
		<input type="hidden" name="profile_id" value="<?=$student->profile_id;?>">
		<input type="hidden" name="enrollment_id" value="<?=$student->enrollment_id;?>">
		<input type="hidden" name="update_childhood_experiences" value="true">
		<input type="submit" name="update_childhood_experiences" value="Update Childhood Experiences"  class="btn btn-primary">
	</div>
	<?endif;?>
	</form>
</div>